package org.dflish.mybatis.encrypt.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用户表
 *
 * @author liangwx
 * @date 2020-09-17 14:13:19
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_users")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "USER_ID")
    private String userId;

    /**
     * 用户名称
     */
    @TableField(value = "USER_NAME")
    private String userName;

    /**
     * 登录名
     */
    @TableField(value = "NICKNAME")
    private String nickName;

    /**
     * 密码
     */
    @TableField(value = "PASSWORD")
    private String password;

    /**
     * 密码有效期
     */
    @TableField(value = "PWD_DURATION")
    private String pwdDuration;

}
